<?php


namespace App\Http\Controllers;


use Illuminate\Http\Request;
use App\Lib\QiNiuAdapter;

class QiNiuController extends BaseController
{

    public function getToken(Request $request) {
        $type = $request->input('type');
        $qiniu = new QiNiuAdapter($type);
        $token = $qiniu->getToken();
        return $this->success([
            'token' => $token
        ]);
    }

    public function notify(Request $request) {
        \Log::info(var_export($request->input(), true));
    }


}

